home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / octa209s.zip / octave-2.09 / libs / info / makefile < prev    next >
Encoding:
Makefile  |  1997-08-14  |  4.4 KB  |  137 lines

  1. CC = gcc
  2.  
  3. OFLAGS = -m486 -O3 -malign-loops=2 -malign-jumps=2 -malign-functions=2 
  4. LDFLAGS = $(OFLAGS) -L.
  5. CFLAGS = $(OFLAGS) -mprobe -DEMX -include config.emx -I.
  6. ZFLAGS = -Zomf -Zcrtdll
  7. EFLAGS = $(OFLAGS) -DEMX -include config.emx -I.
  8.  
  9. %.obj : %.c ; $(CC) $(CFLAGS) -c $< -o $@ -Zomf
  10. %.o : %.c ; $(CC) $(CFLAGS) -c $< -o $@
  11.  
  12. %.res : %.rc
  13.     rc -r $<
  14.  
  15. SOURCES = dir.c display.c echo_area.c filesys.c info-utils.c info.c \
  16.     infodoc.c infomap.c m-x.c nodes.c search.c session.c \
  17.     signals.c terminal.c tilde.c window.c indices.c \
  18.     index-search.c makedoc.c nodemenu.c footnotes.c dribble.c variables.c \
  19.         gc.c pc.c error.obj man.c clib.c xmalloc.c
  20.  
  21. INCL = display.h doc.h echo_area.h filesys.h general.h getopt.h \
  22.     info-utils.h info.h infomap.h nodes.h search.h session.h \
  23.     signals.h termdep.h terminal.h tilde.h indices.h window.h \
  24.     footnotes.h dribble.h variables.h gc.h pc.h clib.h
  25.  
  26. OBJECTS = dir.obj display.obj doc.obj echo_area.obj filesys.obj \
  27.     info-utils.obj infodoc.obj infomap.obj m-x.obj nodes.obj search.obj \
  28.     session.obj signals.obj terminal.obj tilde.obj window.obj indices.obj \
  29.     index-search.obj nodemenu.obj footnotes.obj dribble.obj variables.obj \
  30.         gc.obj pc.obj error.obj man.obj clib.obj xmalloc.obj
  31.  
  32. OBJS = info.obj getopt.obj getopt1.obj xmalloc.obj
  33.  
  34. # The names of files which declare info commands.
  35. CMDFILES = session.c echo_area.c infodoc.c m-x.c indices.c nodemenu.c \
  36.        footnotes.c variables.c
  37.  
  38. # The name of the program which builds documentation structure from CMDFILES.
  39. MAKEDOC_OBJECTS = makedoc.obj clib.obj xmalloc.obj
  40. MAKEDOC_SOURCE = makedoc.c clib.c xmalloc.c
  41.  
  42. all: info.exe gnuview.exe gnuinfo.dll gnuinfo.a gnuinfo.lib
  43.  
  44. install: all
  45.     cp info.exe gnuview.exe h:/bin
  46.     cp gnuinfo.dll h:/bin/dll
  47.     cp gnuinfo.a gnuinfo.lib ../lib
  48.  
  49. clean:
  50.     rm -f *.o *.obj *.a *.lib *.dll *.exe
  51.  
  52. gnuinfo.imp: gnuinfo.def
  53.     emximp -o gnuinfo.imp gnuinfo.def
  54.  
  55. gnuinfo.a: gnuinfo.imp
  56.     emximp -o gnuinfo.a gnuinfo.imp
  57.  
  58. gnuinfo.lib: gnuinfo.imp
  59.     emximp -o gnuinfo.lib gnuinfo.imp
  60.  
  61. info.exe: gnuinfo.lib gnuinfo.dll $(OBJS) info.res
  62.     $(CC) $(LDFLAGS) -o info.exe $(OBJS) info.res gnuinfo.lib $(ZFLAGS)
  63.  
  64. gnuview.exe: gnuview.obj getopt.obj getopt1.obj xmalloc.obj
  65.     $(CC) $(LDFLAGS) -o gnuview.exe $^ $(ZFLAGS)
  66.  
  67. gnuinfo.dll: $(OBJECTS) gnuinfo.def
  68.     gcc -o gnuinfo.dll gnuinfo.def $(OBJECTS) -ltermcap -Zdll $(ZFLAGS)
  69.  
  70. makedoc.exe: $(MAKEDOC_OBJECTS)
  71.     $(CC) $(LDFLAGS) -o makedoc.exe $(MAKEDOC_OBJECTS) $(ZFLAGS)
  72.  
  73. # The files `doc.c' and `funs.h' are created by ./makedoc run over the source
  74. # files which contain DECLARE_INFO_COMMAND.  `funs.h' is a header file
  75. # listing the functions found.  `doc.c' is a structure containing pointers
  76. # to those functions along with completable names and documentation strings.
  77. funs.h: makedoc.exe $(CMDFILES)
  78.     makedoc $(CMDFILES)
  79.  
  80. doc.obj:    doc.c
  81. doc.c:         funs.h
  82. dribble.obj:    dribble.c dribble.h
  83. display.obj:    display.c
  84. echo_area.obj:    echo_area.c
  85. filesys.obj:    filesys.c
  86. info-utils.obj:    info-utils.c filesys.h
  87. info.obj:     info.h filesys.h getopt.h
  88. gnuview.obj:    gnuview.c getopt.h
  89. infodoc.obj:    infodoc.c
  90. infomap.obj:    infomap.c
  91. m-x.obj:    m-x.c
  92. nodes.obj:    nodes.c
  93. search.obj:    search.c
  94. session.obj:    session.c
  95. signals.obj:    signals.c
  96. terminal.obj:    terminal.c
  97. tilde.obj:    tilde.c
  98. window.obj:    window.c
  99. xmalloc.o:    xmalloc.c
  100. indices.obj:    indices.c
  101. index-search.obj:    index-search.c
  102. makedoc.o:    makedoc.c
  103.  
  104. dir.obj:     dir.c
  105. display.obj:     nodes.h info-utils.h search.h
  106. display.obj:     terminal.h window.h display.h
  107. echo_area.obj:     info.h
  108. filesys.obj:     general.h tilde.h filesys.h
  109. footnotes.obj:     footnotes.h
  110. info-utils.obj: info-utils.h nodes.h search.h
  111. info.obj:     info.h getopt.h
  112. infodoc.obj:     info.h doc.h
  113. infomap.obj:     infomap.h funs.h
  114. gc.obj:        info.h
  115. m-x.obj:     info.h
  116. nodes.obj:     search.h filesys.h
  117. nodes.obj:     nodes.h info-utils.h
  118. search.obj:     general.h search.h nodes.h
  119. session.obj:     info.h pc.h
  120. signals.obj:     info.h signals.h
  121. terminal.obj:     terminal.h termdep.h
  122. tilde.obj:     tilde.h
  123. variables.obj:     variables.c variables.h
  124. window.obj:     nodes.h window.h display.h
  125. window.obj:     info-utils.h search.h infomap.h
  126. clib.obj:       clib.c clib.h general.h
  127. error.obj:    error.c
  128. pc.obj:     pc.c pc.h
  129. nodemenu.obj:    nodemenu.c
  130.  
  131. makedoc.obj:    makedoc.c;        $(CC) $(EFLAGS) -c $< -o $@ -Zomf
  132. info.obj:    info.c;            $(CC) $(EFLAGS) -c $< -o $@ -Zomf
  133. getopt.obj:    getopt.c getopt.h;    $(CC) $(EFLAGS) -c $< -o $@ -Zomf
  134. getopt1.obj:    getopt1.c getopt.h;    $(CC) $(EFLAGS) -c $< -o $@ -Zomf
  135.  
  136. info.res:    info.rc
  137.